package com.yzd.netmonitor.dao.base;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface MyBatisBaseDao<T extends Serializable, PK extends Serializable> {

	public void save(T entity);

	public void update(T entity);

	public void saveOrUpdate(T entity);

	public void saveOrUpdateBatch(List<T> list);

	public List<T> getAll(PK id);
	
	public T get(PK id);

	public List<T> find(Map<String, Object> params);

	public int count(Map<String, Object> params);

	public void deleteById(PK id);
}
